package com.kc.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity     // 标识实体类是JPA实体
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {

    @Id         // 标识类里所在变量为主键
    private Integer id;
    private String age;
    private String name;
}
